// ==Badget==
// @name          Google Reader iGoogle Gadfget Unread Count
// @description	  Returns the number of unread mails
// @include       http://www.google.*/ig*
// ==/Badget==

var badgeStyle = {
  fontSize : 10,
  badgeX : 6,
  badgeY : 6,
  badgeRadius : 5.5,
  badgeColor : "rgb(0,0,256)",
  textColor : "rgb(256,256,256)"
};

function doAction()  {
	r = this.documentElement.innerHTML.match(/Inbox \((\d+)\)/);       
	if (r!=null) {
		return r[1];
	}else{
		return null;
	}
}
